package tr.edu.metu.is550.isell.rest.message;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "user")
public class UpdateUserMessage {

    @XmlElement
    @NotNull
    @Size(min = 1, max = 250, message = "invalid.size")
    private String name;

    @XmlElement
    @NotNull
    @Size(min = 1, max = 250, message = "invalid.size")
    private String surname;

    @XmlElement
    @Size(min = 1, max = 500, message = "invalid.size")
    private String address;

    @XmlElement
    @Size(min = 1, max = 250, message = "invalid.size")
    private String phone;

    @XmlElement
    @Size(min = 1, max = 250, message = "invalid.size")
    private String email;

    @XmlElement
    @NotNull
    @Size(min = 1, max = 250, message = "invalid.size")
    private String password;

    public String getName() {
        return name;
    }

    public String getSurname() {
        return surname;
    }

    public String getAddress() {
        return address;
    }

    public String getPhone() {
        return phone;
    }

    public String getEmail() {
        return email;
    }

    public String getPassword() {
        return password;
    }
}
